/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package boole.application.vue;

import boole.circuit.Composant;
import boole.port._Port;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author Rémi PIOTAIX <remi.piotaix@gmail.com>
 */
public class VuePortsSortie extends VueComposant {

    public VuePortsSortie(Composant c) {
        super(c);
    }
  
    @Override
    protected Set<_Port> getDisplayedPorts() {
        Set<_Port> sp = new HashSet();
        for(int i = 1; i<= this.getComposant().getNombreSorties(); i++){
            sp.add(this.getComposant().getSortie(i));
        }
        return sp;
    }

}
